﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZhimeiSoft.Framework.Client.Control.DateTimeGrid
{
    /// <summary>
    /// 获取控件信息接口
    /// </summary>
    interface IDateTimeView
    {
        /// <summary>
        /// 获取当前日期
        /// </summary>
        /// <returns>返回当前控件日期</returns>
        DateTime getDateTime();
        /// <summary>
        /// 设置控件日期
        /// </summary>
        /// <param name="dateTime">设置当前控件的日期</param>
        void setDateTime(DateTime dateTime);
        /// <summary>
        /// 添加内容
        /// </summary>
        /// <param name="valueList">内容说明</param>
        void addItem(string valueList);
        /// <summary>
        /// 获取内容说明的ID
        /// </summary>
        /// <returns>返回ID</returns>
        int getItemID();
        /// <summary>
        /// 根据ID删除内容
        /// </summary>
        /// <param name="valueID">内容说明的ID</param>
        void delItem(int indexID);
        /// <summary>
        /// 初始化时间
        /// </summary>
        void initDate(DateTime dtInit);
        /// <summary>
        /// 设置当前有效时间的控件的颜色
        /// </summary>
        /// <param name="bEffective"></param>
        void setEffectiveColor(bool bEffective);
        
    }
}
